<template>
  <div class="map-container">
    <div class="layer-switch">
      <button @click="toggleMapType">
        {{ isMapType ? '地图' : '卫星' }}
      </button>
    </div>
    <div id="map"></div>
  </div>
</template>

<script>
import L from 'leaflet';
import 'leaflet/dist/leaflet.css';
import { gcj02ToWgs84 } from '../utils/coordTransform'; // 添加坐标转换工具

export default {
  name: 'LeafletTiandi',
  data() {
    return {
      map: null,
      isMapType: false,
      vectorLayer: null,
      satelliteLayer: null,
      terrainLayer: null,
      apiKey: '99099e39a3d3c7fa12e0f84110ed1205',
      markers: [],
      polyline: null,
      dataList: [
        {
          id: "3d85fb7e1fdf48eba63f140678755ec7",
          measurePointName: "东片区机房",
          longitude: 113.04873511513523,
          latitude: 28.159754363026263,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 4,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712635896997,
          testDate: 1712635896997,
          description: "",
          mapLocation: "湖南省长沙市雨花区黎托街道移动东片区机楼",
          metadata: "EF442B7214B2EDCA",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 0,
          range: 0,
          a: 1,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 144,
          fiberCoreProperty: "1-96",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "428fda28224d4df481918efdee71af68",
          measurePointName: "东片区第三路由出局",
          longitude: 113.04841034595523,
          latitude: 28.159602123131236,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712886743420,
          testDate: 1735206360652,
          description: "",
          mapLocation: "湖南省长沙市雨花区沙湾路168号靠近移动东片区机楼",
          metadata: "5D3496EF279F5AC6",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "18279117187a4593a0e703a0bbe8ad60",
              type: 1,
              bindingId: "428fda28224d4df481918efdee71af68",
              fileName: "/files/2024-12-26/image/d6ljbgew5m7ottlqfh.jpg",
              index: 1,
              metadata: "a2b3af8dc8d645f1f8953bea0eb111a7",
            },
          ],
          pointLength: 145.82439,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "d8b996e67ef54b869e7513216e3552fb",
          measurePointName: "白沙湾路0",
          longitude: 113.04815547434299,
          latitude: 28.159858858092104,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712713649939,
          testDate: 1712713649939,
          description: "",
          mapLocation: "湖南省长沙市雨花区沙湾路292号靠近移动东片区机楼",
          metadata: "A534C992A48BDFCA",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "09a9d2f276d04d8c8b44c6a41984537e",
              type: 1,
              bindingId: "d8b996e67ef54b869e7513216e3552fb",
              fileName: "/files/2024-12-10/image/d67w9nrgmeroa89sdb.jpg",
              index: 1,
              metadata: "06fb313cad30df7db9839fbffcbbab42",
            },
            {
              id: "37615f197e344888ba6b5673e83ab3fc",
              type: 1,
              bindingId: "d8b996e67ef54b869e7513216e3552fb",
              fileName: "/files/2024-12-10/image/d67w9nrlulds6fgnwt.jpg",
              index: 2,
              metadata: "96320bce2abc0ee4a97b85a4e33539e5",
            },
          ],
          pointLength: 159,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "4aa6452cc75c4be89a1949b9e9ec8eb0",
          measurePointName: "东片区沙湾路西边",
          longitude: 113.04789459403435,
          latitude: 28.159223201315985,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712887806868,
          testDate: 1735206360621,
          description: "",
          mapLocation: "湖南省长沙市雨花区沙湾路168号靠近移动东片区机楼",
          metadata: "90D4FE2552E2F42D",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "0128143760bd4a8f86a567b23cc03d94",
              type: 1,
              bindingId: "4aa6452cc75c4be89a1949b9e9ec8eb0",
              fileName: "/files/2024-12-26/image/d6ljbfzxr4b0flchn5.jpg",
              index: 1,
              metadata: "846e2cb14a74daa529debd9337dbefcb",
            },
          ],
          pointLength: 293.6987,
          range: 10.208649,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "f8e28ae0637f4a97add702757fe417bf",
          measurePointName: "沙湾路劳动路口西北角",
          longitude: 113.04822817764011,
          latitude: 28.1581581585488,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712822657611,
          testDate: 1712822657611,
          description: "",
          mapLocation: "湖南省长沙市雨花区黎托街道沙湾路",
          metadata: "F01485BD7C944AF3",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "24364243c6084294b1a2f81f21a11d6e",
              type: 1,
              bindingId: "f8e28ae0637f4a97add702757fe417bf",
              fileName: "/files/2024-12-10/image/d67war4bd2f0rrwrje.jpg",
              index: 1,
              metadata: "f76e2ad00bca28e52114bb330b6707a8",
            },
          ],
          pointLength: 414,
          range: 8.166901,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "fb27fefd8520481b815e82b676d8336a",
          measurePointName: "沙湾路劳动路西北角绿化带",
          longitude: 113.04800758011919,
          latitude: 28.1581948671317,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712822736396,
          testDate: 1733821139708,
          description: "",
          mapLocation: "湖南省长沙市雨花区沙湾路509号靠近徐记海鲜(沙湾保利店)",
          metadata: "3454F7EC20774F4C",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "a2eccbd2509143898b17a0441660e010",
              type: 1,
              bindingId: "fb27fefd8520481b815e82b676d8336a",
              fileName: "/files/2024-12-10/image/d67waqzuvxy8sz4ycg.jpg",
              index: 1,
              metadata: "9f125bcfc983e3400a4057f9fea18d50",
            },
          ],
          pointLength: 418,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "cb99a7015d95406393156085d80c4436",
          measurePointName: "劳动路沙湾路西南角山姆会员店",
          longitude: 113.04811617251346,
          latitude: 28.157158923731703,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712888632816,
          testDate: 1733821457776,
          description: "",
          mapLocation: "湖南省长沙市雨花区沙湾路166号靠近吉联MALL",
          metadata: "F0944FDEAB657D60",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 519.4605,
          range: 8.166931,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "ac98dad1f0244e77b212a7a19469dc8f",
          measurePointName: "沙湾路曲塘路西南角光交箱附近",
          longitude: 113.04380752212012,
          latitude: 28.15077525973515,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712889105590,
          testDate: 1733821457797,
          description: "",
          mapLocation: "湖南省长沙市雨花区曲塘路174号靠近象屿·优山美地",
          metadata: "1BA4EE474539C09A",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 1391.9773,
          range: 16.333862,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "2c77236027124f2fb79b49b70daf6a3f",
          measurePointName: "曲塘路南侧路灯105#",
          longitude: 113.04355004528708,
          latitude: 28.15120431919305,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712889326444,
          testDate: 1733821457807,
          description: "",
          mapLocation: "湖南省长沙市雨花区曲塘路174号靠近象屿·优山美地",
          metadata: "5894E237A2012097",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 1457.1691,
          range: 8.16687,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "a693b5c0c2dd49a388d90e5a110b218e",
          measurePointName: "曲塘路南边路灯143#",
          longitude: 113.03764418104839,
          latitude: 28.15088152933151,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712894408380,
          testDate: 1733821457818,
          description: "",
          mapLocation: "湖南省长沙市雨花区圭塘街道曲塘路湖南体育职业学院",
          metadata: "67F4516E6ACB971A",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 2063.1694,
          range: 9.187744,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "7830666390ae4d9f919cf38f96c16fe1",
          measurePointName: "古曲路曲塘路东南角光交箱旁边",
          longitude: 113.03388793078426,
          latitude: 28.149141838289484,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712889842122,
          testDate: 1733821457831,
          description: "",
          mapLocation: "湖南省长沙市雨花区曲塘路367号靠近兴旺宜品府",
          metadata: "3C640C6AFC88DA54",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 2533.8064,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "b449dce3e12640d799a76bebf9acda9d",
          measurePointName: "古曲路曲塘路西北角光交箱旁边",
          longitude: 113.0334265922674,
          latitude: 28.149457527116954,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712890075105,
          testDate: 1736997646235,
          description: "",
          mapLocation: "湖南省长沙市雨花区曲塘路367号靠近兴旺宜品府",
          metadata: "4AE4EEDAD0835885",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 2619.0303,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "0e703ca4a65345bd8cef8ef908e10fcb",
          measurePointName: "古曲路西侧铁塔站往北20末",
          longitude: 113.03343317044153,
          latitude: 28.152270613366934,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712893823344,
          testDate: 1736997646245,
          description: "",
          mapLocation: "湖南省长沙市雨花区香山街39号靠近中城·丽景香山",
          metadata: "CA7497B3B1944726",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 2922.2527,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "4e357a50865440a8b6cd4e4ebb3068fb",
          measurePointName: "古曲路西侧垃圾站",
          longitude: 113.0345074374141,
          latitude: 28.15443169214507,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712893588418,
          testDate: 1736997646254,
          description: "",
          mapLocation: "湖南省长沙市雨花区万家丽中路293号靠近旭辉国际广场",
          metadata: "7A742017075932DA",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 3204.4348,
          range: 15.312988,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "d736e475ee2044f9abbac76f97bf31f1",
          measurePointName: "古曲路西侧路灯96",
          longitude: 113.03643004236272,
          latitude: 28.155702306984306,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712893325584,
          testDate: 1736997646263,
          description: "",
          mapLocation: "湖南省长沙市雨花区古曲南路66号靠近京武·浪琴山2期",
          metadata: "B2C46F3DF01CBBEA",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 3446.8567,
          range: 20.417236,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "8661739b67fd4056b764862bc36f5f74",
          measurePointName: "劳动路古曲路西南角光交箱旁边",
          longitude: 113.0376187000632,
          latitude: 28.15733521716352,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712890423175,
          testDate: 1736997646272,
          description: "",
          mapLocation: "湖南省长沙市雨花区圭塘街道劳动东路284号",
          metadata: "1DE470B45DD46C27",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 3677.6875,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "c082cafec76543b5b788f21008db9141",
          measurePointName: "劳动路古曲路东南角",
          longitude: 113.0386283555676,
          latitude: 28.157364894657597,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712821265066,
          testDate: 1733821139676,
          description: "割接井",
          mapLocation: "湖南省长沙市雨花区劳动东路282号靠近京武·浪琴山3期(建设中)",
          metadata: "CAA42DB391CD9F2F",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 3740,
          range: 12.250488,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "c870c2be770b4ac4abb3e022284329e6",
          measurePointName: "劳动路古曲路东北角路口",
          longitude: 113.03839100030558,
          latitude: 28.158039717173498,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712890862179,
          testDate: 1736997646292,
          description: "",
          mapLocation: "湖南省长沙市雨花区劳动东路235号靠近长沙市烟草专卖局",
          metadata: "65B48233721E1DD7",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 3828.6677,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "6f251e43203748b493f4dff67fc209a0",
          measurePointName: "石坝路与古曲路口东南角",
          longitude: 113.03837910630591,
          latitude: 28.163211542074198,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712634033890,
          testDate: 1712634033890,
          description: "",
          mapLocation: "湖南省长沙市雨花区黎托街道古曲南路茂华·国际湘",
          metadata: "9744792E64856032",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 4469,
          range: 14.291992,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "8436aa42885c4f82afa6ae217c4f9223",
          measurePointName: "石坝路与古曲路西南角",
          longitude: 113.03793385961706,
          latitude: 28.163131143829776,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712726067199,
          testDate: 1712726067199,
          description: "",
          mapLocation: "湖南省长沙市雨花区黎托街道石坝路213号三江·花中城",
          metadata: "42C4AF711185B8E1",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 4574,
          range: 25.521973,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "aba4b77e145b45ae929927633b155d5b",
          measurePointName: "石坝路江益路口",
          longitude: 113.03536028011126,
          latitude: 28.16316779597811,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712726357748,
          testDate: 1712726357748,
          description: "",
          mapLocation: "湖南省长沙市雨花区黎托街道石坝路三江·花中城",
          metadata: "FE443C0E22FCA192",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 4838,
          range: 25.521484,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "35d8124f7c744559bd0bfb997647f912",
          measurePointName: "石坝路美林路口",
          longitude: 113.03221404899062,
          latitude: 28.163134690812427,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712726794427,
          testDate: 1712726794427,
          description: "",
          mapLocation: "湖南省长沙市雨花区黎托街道石坝路三江·花中城",
          metadata: "7BA4DD652A6EE3E2",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 5248,
          range: 19.396484,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "1a1d864f6f3d4f91a29070a8f0e15d6f",
          measurePointName: "石坝路万家丽路东南角",
          longitude: 113.02994758241181,
          latitude: 28.163068480450335,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712820159627,
          testDate: 1712820159627,
          description: "",
          mapLocation: "湖南省长沙市雨花区高桥街道石坝路华雅国际大酒店",
          metadata: "28B4376848822B08",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 5408,
          range: 20.416992,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "86e3dc8c9629402a850af87d456c1d4b",
          measurePointName: "石坝路马王堆路东南角",
          longitude: 113.0252961078009,
          latitude: 28.16333204034953,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712819777364,
          testDate: 1733821139618,
          description: "",
          mapLocation: "湖南省长沙市雨花区石坝路838号靠近新塘垅小区",
          metadata: "9634ABCF2E99FD88",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 6062,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "6bf91f5da2694d11867e4284850b0bdb",
          measurePointName: "长沙大道马王堆路东南角",
          longitude: 113.02535698176138,
          latitude: 28.1695403496399,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712819248584,
          testDate: 1733821139610,
          description: "",
          mapLocation: "湖南省长沙市雨花区高桥街道马王堆南路27号高桥国际",
          metadata: "BAA4BEC34045C77C",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 6806,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "aa143d07f44148cebff2befa8ed0d39f",
          measurePointName: "马王堆路民主路东北角",
          longitude: 113.02531808973129,
          latitude: 28.173961898532365,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712907572323,
          testDate: 1736997646353,
          description: "",
          mapLocation: "湖南省长沙市雨花区高桥街道马王堆南路高桥大市场",
          metadata: "03E4D22847C8233B",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "79272436fc924bd395ba4681da8a0d19",
              type: 1,
              bindingId: "aa143d07f44148cebff2befa8ed0d39f",
              fileName: "/files/2025-01-16/image/d7369w3thwokyqeggw.jpg",
              index: 1,
              metadata: "6b6055417f38b10149a721839a7190b1",
            },
          ],
          pointLength: 7466.2417,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "d209c30561984062978a48ad6292d425",
          measurePointName: "马王堆路173号",
          longitude: 113.02544171205392,
          latitude: 28.17826219477648,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712907791711,
          testDate: 1736997646364,
          description: "",
          mapLocation: "湖南省长沙市雨花区万家丽中路158号靠近上河国际花园",
          metadata: "5A34310CA38EA4E2",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "b6afa84d035d49e682293cd0bcbc6fce",
              type: 1,
              bindingId: "d209c30561984062978a48ad6292d425",
              fileName: "/files/2025-01-16/image/d7369vcg04zoi5lkjq.jpg",
              index: 1,
              metadata: "81d33ccd1f3fa23d161eb99db3459c30",
            },
          ],
          pointLength: 7965.741,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "84206464b7574ab0a3ab6c993a28c6d0",
          measurePointName: "马王堆路西子街东北角",
          longitude: 113.02549109220979,
          latitude: 28.180167127769852,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712907999103,
          testDate: 1736997646376,
          description: "",
          mapLocation: "湖南省长沙市雨花区高桥街道马王堆南路91号西子花苑",
          metadata: "5924ABD22F4C3911",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "f40aae893df74848949fb8bc90595160",
              type: 1,
              bindingId: "84206464b7574ab0a3ab6c993a28c6d0",
              fileName: "/files/2025-01-16/image/d7369vwux5gku3z9bl.jpg",
              index: 1,
              metadata: "4bfa11b580b874f3b26ddab6c8929c8c",
            },
          ],
          pointLength: 8200.612,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "7e01fb98a9314031ae03d2bdf8d12e63",
          measurePointName: "马王堆路人民路东南角",
          longitude: 113.02577617897191,
          latitude: 28.183953463642954,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712908332497,
          testDate: 1736997646387,
          description: "",
          mapLocation: "湖南省长沙市雨花区人民东路374号靠近长房国际大厦",
          metadata: "C8C4C756CD8377ED",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "baad9edfdefc40c583e07387ea58840b",
              type: 1,
              bindingId: "7e01fb98a9314031ae03d2bdf8d12e63",
              fileName: "/files/2025-01-16/image/d7369vfwzyl4oey59d.jpg",
              index: 1,
              metadata: "58444458f323aa4826db399b65063458",
            },
          ],
          pointLength: 8632.55,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "9550d549a6bb48fab4ee4efb2977e48d",
          measurePointName: "马王堆路人民路东北角",
          longitude: 113.02563056707618,
          latitude: 28.184847114887724,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712908743093,
          testDate: 1736997646398,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区荷花园街道马王堆中路长房国际大厦",
          metadata: "47B4CCD0F151AFC4",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "0eb9e96214f747c28611cf9ed7c614a8",
              type: 1,
              bindingId: "9550d549a6bb48fab4ee4efb2977e48d",
              fileName: "/files/2025-01-16/image/d7369vk8tkhwgafhui.jpg",
              index: 1,
              metadata: "114a3beacebfcde750e5267ad89c4a61",
            },
          ],
          pointLength: 8855.706,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "7baf9c0acd464a088e27dc8eedd71b37",
          measurePointName: "马王堆路荷花路东南角",
          longitude: 113.02583977937581,
          latitude: 28.191392133447398,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712909028937,
          testDate: 1736997646410,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区荷花园街道荷花路190号新金鸿集团大厦",
          metadata: "F3443186FF7E9C0B",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "8c1e971f519d45139170fafc20e4b56e",
              type: 1,
              bindingId: "7baf9c0acd464a088e27dc8eedd71b37",
              fileName: "/files/2025-01-16/image/d7369vu42hf8ps4nxn.jpg",
              index: 1,
              metadata: "8efb7d6f9af480b6eef0a574ec7ba590",
            },
          ],
          pointLength: 9601.941,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "f4be2bad68694776a8449c7f9eeca9d2",
          measurePointName: "马王堆路远大路东南角",
          longitude: 113.02618041991485,
          latitude: 28.19713066323732,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712909361094,
          testDate: 1736997646422,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区荷花园街道远大一路东方芙蓉",
          metadata: "B4F4822D9FB007A2",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "3676614d2a1f498d9e710cdb853cd4d5",
              type: 1,
              bindingId: "f4be2bad68694776a8449c7f9eeca9d2",
              fileName: "/files/2025-01-16/image/d7369vumofxwdmgidu.jpg",
              index: 1,
              metadata: "9d62121835434ec20ef854833807d8ca",
            },
          ],
          pointLength: 10297.98,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "d08bf61397404744a21d2f17b0385602",
          measurePointName: "马王堆路远大路口",
          longitude: 113.02600659236498,
          latitude: 28.19723497295537,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712909474190,
          testDate: 1736997646433,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区远大一路522号靠近东方芙蓉",
          metadata: "76740C1FB9669A6B",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "488dbfa768c742b5892c41d111054b9c",
              type: 1,
              bindingId: "d08bf61397404744a21d2f17b0385602",
              fileName: "/files/2025-01-16/image/d7369vyw6360wd0mkp.jpg",
              index: 1,
              metadata: "6678a97d19b6a735f0466376d02a4ab0",
            },
          ],
          pointLength: 10365.954,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "f56a716c10ba4815bb06a6955339433d",
          measurePointName: "马王堆路凌霄路东南角",
          longitude: 113.0261240935265,
          latitude: 28.202140839243114,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712909741480,
          testDate: 1736997646446,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区火星街道马王堆北路马王堆陶瓷建材新城E区",
          metadata: "8B148577F281B60F",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "87a90889ea4d4003a06c92339d6c9eb2",
              type: 1,
              bindingId: "f56a716c10ba4815bb06a6955339433d",
              fileName: "/files/2025-01-16/image/d7369wbxysyk1tizbh.jpg",
              index: 1,
              metadata: "aa98ef7962132cb346ca6e8fe5de9fb7",
            },
          ],
          pointLength: 10897.874,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "5f60052a685c49418475d5cefaf5a441",
          measurePointName: "马王堆路凌霄路西南角",
          longitude: 113.02588816336936,
          latitude: 28.202256082481995,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712909815543,
          testDate: 1736997646458,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区凌霄路127号靠近长沙市一中马王堆中学",
          metadata: "94E43659C9C35D32",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "459dc88a44914bbda0e6ff622763e1ee",
              type: 1,
              bindingId: "5f60052a685c49418475d5cefaf5a441",
              fileName: "/files/2025-01-16/image/d7369w5m1gg09tz51o.jpg",
              index: 1,
              metadata: "179afd925f4b27a1da200a101505449f",
            },
          ],
          pointLength: 10930.335,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "b4c6c41e14804abfac101cbfe1546623",
          measurePointName: "凌霄路井1",
          longitude: 113.02457914116036,
          latitude: 28.202276757234788,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712909990939,
          testDate: 1736997646468,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区火星街道凌霄路111号湖南省电信公司铁银花园宿舍",
          metadata: "40544B14BF4AAAA2",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "88daa7c55d0f4a5dbb252aff1e8a9839",
              type: 1,
              bindingId: "b4c6c41e14804abfac101cbfe1546623",
              fileName: "/files/2025-01-16/image/d7369wgaxv00az3nql.jpg",
              index: 1,
              metadata: "30d4eb68e88bffc6f2e96d8cd7cb8b7a",
            },
          ],
          pointLength: 11059.818,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "39df84d3328d41c3981fe60e249c9a57",
          measurePointName: "凌霄路紫薇路西北角",
          longitude: 113.0236162281405,
          latitude: 28.202302758917842,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712910114211,
          testDate: 1736997646480,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区火星街道凌霄路99号天泰花园",
          metadata: "AE947B0D1B975BD6",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "8a8c06afcf5c45bd8a76eeac8090883e",
              type: 1,
              bindingId: "39df84d3328d41c3981fe60e249c9a57",
              fileName: "/files/2025-01-16/image/d7369x513b40ep2rnc.jpg",
              index: 1,
              metadata: "3bef068ca846e9d93a4de160d27426a2",
            },
          ],
          pointLength: 11160.611,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "833b4f2d593a43b995c3cb7c6854c622",
          measurePointName: "凌霄路二环路口东北角",
          longitude: 113.01984638343453,
          latitude: 28.202424493986147,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712910329797,
          testDate: 1736997646492,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区火星街道东二环辅路凌霄社区",
          metadata: "4F94BF9452C4AF51",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "85bb30d7eb924e5795cbce7c37c08009",
              type: 1,
              bindingId: "833b4f2d593a43b995c3cb7c6854c622",
              fileName: "/files/2025-01-16/image/d7369x6dxto4a59wfj.jpg",
              index: 1,
              metadata: "2c05cd490f1fe6a85a7b69fa44de811c",
            },
          ],
          pointLength: 11542.904,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "a8f86a721d0f499b83fb87c8dea63e2a",
          measurePointName: "晚报大道东二环路口东南角",
          longitude: 113.01994964847984,
          latitude: 28.208475615769583,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712910612890,
          testDate: 1736997646503,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区火星街道晚报大道湖南省教育厅",
          metadata: "DFB4D31BD123A0C4",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "c385600153bf4ad1829036c937e547e9",
              type: 1,
              bindingId: "a8f86a721d0f499b83fb87c8dea63e2a",
              fileName: "/files/2025-01-16/image/d7369x8ajpsoa4bta9.jpg",
              index: 1,
              metadata: "41bfa808939bbaa8bb66d21410e9c118",
            },
          ],
          pointLength: 12240.16,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "5ae07337d6fb4b29917146447a996f7b",
          measurePointName: "晚报大道南侧井",
          longitude: 113.02029297122789,
          latitude: 28.208554798099073,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712910685401,
          testDate: 1736997646513,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区火星街道晚报大道湖南省教育厅",
          metadata: "1BD4B09994649B10",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "ac103352070f4db6a24758d74012a11f",
              type: 1,
              bindingId: "5ae07337d6fb4b29917146447a996f7b",
              fileName: "/files/2025-01-16/image/d7369wsfle0ck4tx46.jpg",
              index: 1,
              metadata: "f2e0ceb292b6b8d453c4163b23b20ebd",
            },
          ],
          pointLength: 12319.294,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "57b835ffd0994edaa0d1279e24c2ef37",
          measurePointName: "晚报大道北侧井",
          longitude: 113.02032381663105,
          latitude: 28.208742708168458,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712910875294,
          testDate: 1736997646524,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区马王堆街道晚报大道丽景新贵",
          metadata: "D7E40CDC3A2358F6",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "055952dcbdd449b7a2bd696834a6c868",
              type: 1,
              bindingId: "57b835ffd0994edaa0d1279e24c2ef37",
              fileName: "/files/2025-01-16/image/d7369xim2nbsaz1j2o.jpg",
              index: 1,
              metadata: "c789d34c162f57eae71334d1711b92db",
            },
          ],
          pointLength: 12352,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "43179858466348f9a4e6ad06c27753a3",
          measurePointName: "火炬路东二环东南角",
          longitude: 113.02022189269019,
          latitude: 28.21253865714343,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712911079710,
          testDate: 1736997646536,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区马王堆街道火炬中路湖南省高级人民法院",
          metadata: "F474076B547FBEF3",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "ab60c992c9674e1f8324ac88e6a2547b",
              type: 1,
              bindingId: "43179858466348f9a4e6ad06c27753a3",
              fileName: "/files/2025-01-16/image/d7369xofyvscquxsuw.jpg",
              index: 1,
              metadata: "1d94b819d88acc89c22f218cbb2b3335",
            },
          ],
          pointLength: 12731.348,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "ecb611c5980147d7bff17ee0102ec22a",
          measurePointName: "火炬路东二环西南角",
          longitude: 113.01920801769995,
          latitude: 28.212519748641036,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712911333267,
          testDate: 1736997646548,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区马王堆街道东二环辅路园康云顶苑",
          metadata: "BFE4557478FBCA68",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "5bee670939f44eac923d138b64104f1f",
              type: 1,
              bindingId: "ecb611c5980147d7bff17ee0102ec22a",
              fileName: "/files/2025-01-16/image/d7369xsjn2yst0dh0b.jpg",
              index: 1,
              metadata: "c326ce70b2ab271c424f42eb91db64c2",
            },
          ],
          pointLength: 12864.137,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "2c2b9b63eeaa4f12ab769ff91ab06bea",
          measurePointName: "火炬西路王府花园公交站",
          longitude: 113.01040903117712,
          latitude: 28.21166295361353,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712911797545,
          testDate: 1736997646558,
          description: "",
          mapLocation:
            "湖南省长沙市芙蓉区湘湖街道托马斯学习馆王府校区(芙蓉区飞腾培训学校)王府花园",
          metadata: "B4A480F1E78391FA",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "319d1689e06a418493176e29dfb2fcee",
              type: 1,
              bindingId: "2c2b9b63eeaa4f12ab769ff91ab06bea",
              fileName: "/files/2025-01-16/image/d7369xw6gr9ol4wshh.jpg",
              index: 1,
              metadata: "afb98307e5d7e3ebec688096c6f835c3",
            },
          ],
          pointLength: 13847.068,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "84ba8bdb72b344999640a0fbee5ee3cb",
          measurePointName: "火炬路步步高",
          longitude: 113.00894186287104,
          latitude: 28.211599136881265,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712911976106,
          testDate: 1736997646570,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区湘湖街道车站北路12号步步高生活广场",
          metadata: "2774C9CEC4AD847E",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "789148514dba481fbfd4f1042d1ddcac",
              type: 1,
              bindingId: "84ba8bdb72b344999640a0fbee5ee3cb",
              fileName: "/files/2025-01-16/image/d7369xz8xezomm6cqr.jpg",
              index: 1,
              metadata: "972ceea8bb17b19318cd1df18298db98",
            },
          ],
          pointLength: 13989.843,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "3788b5057c67405e9942df5e383da8a1",
          measurePointName: "车站北路与火炬西路交汇口",
          longitude: 113.00834655761719,
          latitude: 28.211618423461914,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "",
          createDate: 1703901987476,
          testDate: 1736997646580,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区车站北路494号靠近步步高生活广场",
          metadata: "A6149F909219EC05",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "d5a800bdc8fc42fcb78b895283ef5dec",
              type: 1,
              bindingId: "3788b5057c67405e9942df5e383da8a1",
              fileName: "/files/2025-01-16/image/d7369y2su5a8zbkvzw.jpg",
              index: 0,
              metadata: "8114F136EFC64D7F",
            },
          ],
          pointLength: 14070,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "36d0b385fa764af3af3b7abdc34acf0d",
          measurePointName: "车站北路王府花园对面",
          longitude: 113.00815597564315,
          latitude: 28.210747061673032,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712912260120,
          testDate: 1736997646594,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区湘湖街道车站北路证券大厦(车站北路)",
          metadata: "F1B43A66BB8B7638",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "6fb7cc0dee7f4f7abfbd504d98b8ab38",
              type: 1,
              bindingId: "36d0b385fa764af3af3b7abdc34acf0d",
              fileName: "/files/2025-01-16/image/d7369ydiwjho0jocuq.jpg",
              index: 1,
              metadata: "7329a7d124218b164e4c21865d08855a",
            },
          ],
          pointLength: 14194.098,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "8d4702035fdb40deac7cbe82f92fea19",
          measurePointName: "省公司门口南井",
          longitude: 113.00762176513672,
          latitude: 28.214582443237305,
          coordinateSystem: "GCJ-02",
          envType: 2,
          pointType: 1,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1703901565525,
          testDate: 1736997646606,
          description: "",
          mapLocation: "湖南省长沙市芙蓉区湘湖街道车站北路中国移动通信集团湖南有限公司",
          metadata: "25349396A4022ED7",
          deptId: 221,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: [
            {
              id: "8ae03153a67e429eab86f9509e3c537e",
              type: 1,
              bindingId: "8d4702035fdb40deac7cbe82f92fea19",
              fileName: "/files/2025-01-16/image/d7369y5c4caklmevpg.jpg",
              index: 0,
              metadata: "FBD4EF1238016221",
            },
            {
              id: "5afa494acbe74f21a0680e984290c94f",
              type: 1,
              bindingId: "8d4702035fdb40deac7cbe82f92fea19",
              fileName: "/files/2025-01-16/image/d7369y7gap50jbu44o.jpg",
              index: 1,
              metadata: "3854FE8DC33A8F1B",
            },
          ],
          pointLength: 14719,
          range: 0,
          a: 0,
          z: 0,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 0,
          fiberCoreProperty: "",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
        {
          id: "50acaa44485844978e0f74f8a894eeb1",
          measurePointName: "车站北路机房",
          longitude: 113.00719038041427,
          latitude: 28.215697511828036,
          coordinateSystem: "GCJ-02",
          envType: 1,
          pointType: 4,
          testMachineRoom: "",
          testPerson: "CSYD",
          createDate: 1712912753283,
          testDate: 1733820910398,
          description: "",
          mapLocation:
            "湖南省长沙市芙蓉区湘湖街道车站北路491号中国移动通信集团湖南有限公司",
          metadata: "1714C82ADEF262B7",
          deptId: 218,
          lineId: "29bae53273a94eef89e87258573c89dd",
          images: null,
          pointLength: 14920,
          range: 0,
          a: 0,
          z: 1,
          holeTotal: 0,
          holeNumber: 0,
          fiberCoreCount: 144,
          fiberCoreProperty: "1-96",
          verify: 0,
          totalLine: 0,
          hasJunctionBox: 0,
        },
      ]
    };
  },
  mounted() {
    this.initMap();
  },
  methods: {
    initMap() {
      // 创建地图实例
      this.map = L.map('map', {
        center: [28.159754363026263, 113.04873511513523],
        zoom: 12,
        zoomControl: false,
        attributionControl: false
      });

      // 创建矢量图层
      this.vectorLayer = L.tileLayer('http://t{s}.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=' + this.apiKey, {
        subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
        maxZoom: 18,
        minZoom: 1
      });

      // 创建矢量注记图层
      this.vectorTextLayer = L.tileLayer('http://t{s}.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=' + this.apiKey, {
        subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
        maxZoom: 18,
        minZoom: 1
      });

      // 创建卫星影像图层
      this.satelliteLayer = L.tileLayer('http://t{s}.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=' + this.apiKey, {
        subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
        maxZoom: 18,
        minZoom: 1
      });

      // 创建卫星影像注记图层
      this.satelliteTextLayer = L.tileLayer('http://t{s}.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=' + this.apiKey, {
        subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
        maxZoom: 18,
        minZoom: 1
      });

      // 默认添加矢量图层
      this.vectorLayer.addTo(this.map);
      this.vectorTextLayer.addTo(this.map);

      // 添加缩放控件
      L.control.zoom({
        position: 'bottomleft'
      }).addTo(this.map);

      // 添加标注点和线段
      this.addMarkersAndLine();
    },

    addMarkersAndLine() {
      // 清除现有的标注和线段
      this.clearMarkersAndLine();

      // 创建自定义图标
      const customIcon = L.icon({
        iconUrl: 'http://fs.furthersense.com/resource/icon/point-4.png',
        iconSize: [30, 30],
        iconAnchor: [15, 30],
        popupAnchor: [0, -30]
      });

      // 添加标注点
      const points = [];
      this.dataList.forEach(point => {
        // 转换坐标从 GCJ-02 到 WGS-84
        const wgs84Coords = gcj02ToWgs84(point.longitude, point.latitude);
        
        // 创建标注
        const marker = L.marker([wgs84Coords[1], wgs84Coords[0]], {
          icon: customIcon
        });

        // 添加弹出信息
        marker.bindPopup(`
          <div>
            <h3>${point.measurePointName}</h3>
            <p>位置：${point.mapLocation}</p>
            <p>类型：${point.envType}</p>
            <p>长度：${point.pointLength}米</p>
            <p>坐标：${point.latitude}, ${point.longitude}</p>
          </div>
        `);

        // 将标注添加到地图
        marker.addTo(this.map);
        this.markers.push(marker);
        points.push([wgs84Coords[1], wgs84Coords[0]]);
      });

      // 绘制连线
      if (points.length > 1) {
        // 创建透明的宽线（用于hover效果）
        const widePolyline = L.polyline(points, {
          color: '#001111',
          weight: 10,
          opacity: 0
        }).addTo(this.map);

        // 创建实际显示的细线
        this.polyline = L.polyline(points, {
          color: '#FF5252',
          weight: 5,
          opacity: 1
        }).addTo(this.map);

        // 添加hover效果
        widePolyline.on('mouseover', () => {
          widePolyline.setStyle({
            opacity: 0.8,
            color: '#1e82e9'
          });
        });

        widePolyline.on('mouseout', () => {
          widePolyline.setStyle({
            opacity: 0
          });
        });

        // 添加点击事件
        widePolyline.on('click', (e) => {
          L.popup()
            .setLatLng(e.latlng)
            .setContent(`
              <div>
                <h3>线路信息</h3>
                <p>总长度：${this.calculateTotalDistance(points).toFixed(2)} 米</p>
              </div>
            `)
            .openOn(this.map);
        });

        // 调整地图视野以包含所有点
        this.map.fitBounds(L.latLngBounds(points));
      }
    },

    clearMarkersAndLine() {
      // 清除标注点
      this.markers.forEach(marker => {
        marker.remove();
      });
      this.markers = [];

      // 清除线段
      if (this.polyline) {
        this.polyline.remove();
        this.polyline = null;
      }
    },

    calculateTotalDistance(points) {
      let totalDistance = 0;
      for (let i = 0; i < points.length - 1; i++) {
        const point1 = L.latLng(points[i]);
        const point2 = L.latLng(points[i + 1]);
        totalDistance += point1.distanceTo(point2);
      }
      return totalDistance;
    },

    toggleMapType() {
      this.isMapType = !this.isMapType;
      if (this.isMapType) {
        // 切换到卫星图
        this.map.removeLayer(this.vectorLayer);
        this.map.removeLayer(this.vectorTextLayer);
        this.map.addLayer(this.satelliteLayer);
        this.map.addLayer(this.satelliteTextLayer);
      } else {
        // 切换到矢量图
        this.map.removeLayer(this.satelliteLayer);
        this.map.removeLayer(this.satelliteTextLayer);
        this.map.addLayer(this.vectorLayer);
        this.map.addLayer(this.vectorTextLayer);
      }
    }
  }
};
</script>

<style scoped>
.map-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

.layer-switch {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.layer-switch button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.layer-switch button:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 添加弹出窗口样式 */
:deep(.leaflet-popup-content) {
  margin: 10px;
}

:deep(.leaflet-popup-content h3) {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #333;
}

:deep(.leaflet-popup-content p) {
  margin: 4px 0;
  font-size: 14px;
  color: #666;
}
</style>
